package com.JZ.QM.feign;

import com.JZ.QM.common.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

/**
 * @author cyc
 * @email cyc@gmail.com
 * @date 2020/6/20 17:01
 */
@FeignClient("investment-advisor-service")
public interface CombinationFeignService {

    //获取组合的基本信息
    @RequestMapping("/combinationBaseInfo/getCombinationBaseInfoEntity")
    CommonResult getComBaseInfo(@RequestParam("comBaseId") Long comBaseId);

    //获取组合中各个产品信息
    @RequestMapping("/combinationShare/getCombinationShareInfo")
    CommonResult getCombinationShareInfoById(@RequestParam("comBaseId") Long comBaseId);

    //获取组合的详细信息(组合占比)
    @RequestMapping("/combinationShare/getCombinationShareDetails")
    CommonResult getCombinationShareNamesById(@RequestParam("comBaseId") Long comBaseId);

    //获取组合成分产品的列表(股票列表和基金列表)
    @RequestMapping("/combinationShare/getCombinationShareList")
    CommonResult getCombinationShareList(@RequestParam("comBaseId") Long comBaseId);

    //获取组合成分产品id
    @RequestMapping("/productLibratyInfo/getProId")
    CommonResult getProId(@RequestParam("proTsCode") String proTsCode);

    //获取组合成分产品名称
    @RequestMapping("/productLibratyInfo/getProName")
    CommonResult getProName(@RequestParam("proTsCode") String proTsCode);

    //获取组合产品类型
    @RequestMapping("/productLibratyInfo/getProType")
    CommonResult getProType(@RequestParam("proId") Long proId);
}
